Add parser tests about building table with {{!}}
authorumherirrender <umherirrender_de.wp@web.de>
Wed, 16 Jul 2014 09:13:30 +0000 (11:13 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 3 Aug 2014 09:48:12 +0000 (09:48 +0000)
{{!}} can be used as part of the open or close table syntax, which is
tested with this parser test.

Change-Id: I044967a81689ace5b322e7787ebffe186f830dec

tests/parser/parserTests.txt

index 62e160b..96a002a 100644 (file)
@@ -5295,6 +5295,29 @@ Table-cell after a comment-only-empty-line
 
 !! end
 
+!! test
+Build table with {{!}}
+!! wikitext
+{{{!}} class="wikitable"
+! header
+! second header
+{{!}}- style="color:red;"
+{{!}} data {{!}}{{!}} style="color:red;" {{!}} second data
+{{!}}}
+!! html
+<table class="wikitable">
+<tr>
+<th> header
+</th>
+<th> second header
+</th></tr>
+<tr style="color:red;">
+<td> data </td>
+<td style="color:red;"> second data
+</td></tr></table>
+
+!! end
+
 # The expected HTML structure in this test is debatable. The PHP parser does
 # not parse this kind of table at all. The main focus for Parsoid is on
 # round-tripping, so this output is ok for now. TODO: revisit!